<script setup>
import { ref } from 'vue'

let props = defineProps(['entityDataItem'])
let entityDataItem = props.entityDataItem
</script>


<template>
    <div class="box">
        <div class="line1">
            <div class="row1">
                <div class="img-box">
                    <img :src="entityDataItem.image0" alt="">
                </div>
                <div class="text-box">{{ entityDataItem.field11 }}</div>
            </div>
            <div class="row2">
                <button class="btn1">{{ entityDataItem.field11 }}</button>
            </div>
        </div>
        <div class="line2">
            <p>
                {{ entityDataItem.field21 }}
            </p>
        </div>
        <div class="line3">
            <img :src="entityDataItem.image0" alt="">
            <img :src="entityDataItem.image2" alt="">
            <img :src="entityDataItem.image3" alt="">
        </div>
    </div>
</template>


<style scoped>
.box {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    background: #ffffff;
    box-shadow: 0.2rem 0.2rem 0.3rem #d9d9d9,
        -0.2rem -0.2rem 0.3rem #ffffff;
    border-radius: 0.3rem;
    margin-bottom: 0.4rem;
}

.line1 {
    width: 100%;
    height: 3.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row1 {
    width: 70%;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.img-box {
    height: 100%;
    margin-right: 0.2rem;
}

.img-box>img {
    width: 3.2rem;
    height: 100%;
}

.row2 {
    width: 5.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
}

.btn1 {
    width: 100%;
    height: 2rem;
    border: none;
    border-radius: 0.2rem;
    color: white;
    background-color: rgb(250, 109, 35);
    font-size: 1rem;
}

.line2 {
    width: 100%;
    max-height: 12.7rem;
    margin-top: 0.6rem;
    overflow: hidden;
}

.line2>p {
    width: 100%;
    word-wrap: break-word;
    font-size: 1.2rem;
}

.line3 {
    width: 100%;
    display: flex;
    margin-top: 0.6rem;
}

.line3>img {
    width: 4.6rem;
    height: 4.8rem;
    margin-right: 0.6rem;
}
</style>
